<template>
  <div>
    <a-form :form="roleForm">
      <a-form-item label="角色名称" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
        <a-input v-decorator="['roleName', { rules: [{ required: true, message: '角色名称必须输入!' }] }]" />
      </a-form-item>
    </a-form>
  </div>
</template>
<script>
export default {
    data(){
        return{
            roleForm:{}
        }
    },
    created(){
        this.roleForm = this.$form.createForm(this, { name: "coordinated" })
        this.$emit("initForm",this.roleForm)
    }

};
</script>
<style lang="stylus"></style>